package everything.search.trees.nodes;

import everything.search.AgentState;

public class GameTreeNode {
	
	GameTreeNode _parent;
	AgentState _state;
	double _value;
	String _move;
	
	public GameTreeNode(AgentState state, GameTreeNode parent, double value, String move) {
		this._state = state;
		this._parent = parent;
		this._value = value;
		this._move = move;
	}
	
	public AgentState getState(){
		return _state;
	}

	public double getValue() {
		return _value;
	}

	public void setValue(double value) {
		_value = value;
	}
	public GameTreeNode getParent(){
		return _parent;
	}
	public String getMove() {
		return _move;
	}
	
	public String toString(){
		return _move + "  " + _value + " " + _state;
	}
}
